﻿<%@ page language="C#" masterpagefile="~/MasterPage.master" autoeventwireup="true" inherits="SampleManage, App_Web_tc1ewyt0" title="VL样品管理" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<ul class="box">
        <li id="submenu-active"><a href="#">样品管理</a>
        <ul>
            <li>
                <asp:LinkButton ID="lbtnSampleList" runat="server" OnClick="lbtnSampleList_Click">样品列表</asp:LinkButton></li>
                <li>
                <asp:LinkButton ID="lbtnAddSample" runat="server" OnClick="lbtnAddSample_Click">新增样品</asp:LinkButton>  </li>
           <!-- 
           <li>
                <asp:LinkButton ID="lbtnFindSample" runat="server">查找样品</asp:LinkButton> </li>
            <li>
                <asp:LinkButton ID="lbtnUpdateSample" runat="server" OnClick="lbtnUpdateSample_Click">修改样品</asp:LinkButton> </li>
            <li>
                <asp:LinkButton ID="lbtnDelSample" runat="server">删除样品</asp:LinkButton> </li>
                -->
            </ul></li>
        </ul>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<asp:UpdatePanel id="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <contenttemplate>
<!-- 样品列表 --><asp:Panel id="pnlSampleList" runat="server" Width="96%"><H1>样品列表</H1><P>样品编号： <asp:TextBox id="txtSampleNO" runat="server" autocomplete="off"></asp:TextBox>&nbsp; <cc1:AutoCompleteExtender id="AutoCompleteExtender1" runat="server" CompletionSetCount="12" ServiceMethod="GetVLSampleNO" ServicePath="samplewebservice.asmx" TargetControlID="txtSampleNO" CompletionInterval="1000"></cc1:AutoCompleteExtender> <asp:Button id="btnFindSample" onclick="btnFindSample_Click" runat="server" Text="查找样品"></asp:Button>&nbsp;&nbsp; <asp:DropDownList id="ddlYear" runat="server"></asp:DropDownList></P><asp:GridView id="gvSampleList" runat="server" OnPageIndexChanging="gvSampleList_PageIndexChanging" OnPageIndexChanged="gvSampleList_PageIndexChanged" PageSize="20" AllowPaging="True" OnRowDeleting="gvSampleList_RowDeleting" OnRowDataBound="gvSampleList_RowDataBound" AutoGenerateColumns="False" OnSelectedIndexChanged="gvSampleList_SelectedIndexChanged"><Columns>
<asp:BoundField DataField="sampleNO" HeaderText="样品编号"></asp:BoundField>
<asp:BoundField DataField="sampledate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="收样日期" HtmlEncode="False"></asp:BoundField>
<asp:BoundField DataField="samplename" HeaderText="姓名"></asp:BoundField>
<asp:BoundField DataField="samplegender" HeaderText="性别" Visible="False"></asp:BoundField>
<asp:BoundField DataField="sampleage" HeaderText="年龄" Visible="False"></asp:BoundField>
<asp:BoundField DataField="sampleaddress" HeaderText="地址" Visible="False"></asp:BoundField>
<asp:BoundField DataField="samplesource" HeaderText="来样单位"></asp:BoundField>
<asp:BoundField DataField="sampleproperty" HeaderText="来样性质" Visible="False"></asp:BoundField>
<asp:BoundField DataField="samplecheckdate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="检测日期" HtmlEncode="False"></asp:BoundField>
<asp:BoundField DataField="samplesign" HeaderText="收样人"></asp:BoundField>
<asp:BoundField DataField="sampleresult" HeaderText="VL结果"></asp:BoundField>
<asp:CommandField SelectText="查看详细" ShowSelectButton="True"></asp:CommandField>
<asp:TemplateField ShowHeader="False"><ItemTemplate>
            <asp:LinkButton ID="lbtnDelSample2" runat="server" CausesValidation="False" CommandName="Delete"
                Text="删除"></asp:LinkButton>
        
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView> <BR />
<HR />
样品来源：<asp:DropDownList id="ddlSampleSourceUnit" runat="server" Width="163px"></asp:DropDownList> <asp:Button id="btnFilterSource" onclick="btnFilterSource_Click" runat="server" Text="查找"></asp:Button><BR /><asp:LinkButton id="lbtnAddSample2" onclick="lbtnAddSample_Click" runat="server">新增样品</asp:LinkButton><BR /><asp:Label id="lblMsg1" runat="server"></asp:Label></asp:Panel> 
<!-- 新增样品 --><asp:Panel id="pnlAddSample" runat="server">
<H1>新增样品</H1>
<TABLE><TBODY>
<TR><TD style="COLOR: red">样品编号</TD><TD><asp:TextBox id="txtSampleNO2" runat="server"></asp:TextBox></TD><TD></TD></TR>
<TR><TD style="COLOR: red">收样日期</TD><TD>&nbsp;<asp:TextBox id="txtSampleDate" runat="server"></asp:TextBox> <cc1:CalendarExtender id="CalendarExtender1" runat="server" TargetControlID="txtSampleDate" Format="yyyy-MM-dd" PopupPosition="Right"></cc1:CalendarExtender></TD><TD></TD></TR>
<TR><TD style="COLOR: red">姓名</TD><TD><asp:TextBox id="txtSampleName" runat="server"></asp:TextBox></TD><TD></TD></TR>
<TR><TD>性别</TD><TD><asp:DropDownList id="ddlGender" runat="server" Width="97px" Visible="False"><asp:ListItem Value="0">未知</asp:ListItem>
<asp:ListItem Value="1">男</asp:ListItem>
<asp:ListItem Value="2">女</asp:ListItem>
</asp:DropDownList></TD><TD></TD></TR>
<TR><TD>年龄</TD><TD><asp:TextBox id="txtSampleAge" runat="server" Visible="False">0</asp:TextBox></TD><TD></TD></TR>
<!-- 去掉地址录入
<TR><TD>地址</TD><TD><asp:TextBox id="txtSampleAddress" runat="server"></asp:TextBox></TD><TD></TD></TR>
-->
<TR><TD style="COLOR: red">来样单位</TD><TD><asp:DropDownList id="ddlSampleSource" runat="server" Width="155px"></asp:DropDownList></TD><TD></TD></TR><!-- 去掉来样性质录入
<TR><TD>来样性质</TD><TD><asp:TextBox id="txtSampleProperty" runat="server" Visible="False"></asp:TextBox><BR />
<asp:DropDownList id="ddlSampleProperty" runat="server" Width="152px" __designer:wfdid="w1"></asp:DropDownList></TD>
<TD></TD></TR>
--><TR><TD style="COLOR: red">检测日期</TD><TD>&nbsp;<asp:TextBox id="txtCheckdate1" runat="server"></asp:TextBox> <cc1:CalendarExtender id="CalendarExtender2" runat="server" TargetControlID="txtCheckdate1" Format="yyyy-MM-dd" PopupPosition="Right"></cc1:CalendarExtender></TD><TD></TD></TR><TR><TD style="COLOR: red">收样人</TD><TD><asp:TextBox id="txtSampleSign" runat="server"></asp:TextBox></TD><TD></TD></TR><TR><TD>VL结果</TD><TD><asp:TextBox id="txtSampleResult" runat="server"></asp:TextBox></TD><TD></TD></TR><TR><TD colSpan=3><asp:Button id="btnAddSample" onclick="btnAddSample_Click" runat="server" Text="保存"></asp:Button></TD></TR></TBODY></TABLE><asp:LinkButton id="LinkButton1" onclick="LinkButton1_Click" runat="server">返回样品列表</asp:LinkButton></asp:Panel> 
<!-- 更新修改样品 --><asp:Panel id="pnlUpdateSample" runat="server"><H1>查看及修改样品信息</H1><TABLE style="WIDTH: 96%"><TBODY><TR><TD style="WIDTH: 80px">样品编号</TD><TD style="WIDTH: 120px"><asp:Label id="lblSampleNO" runat="server"></asp:Label></TD><TD>收样日期</TD><TD><asp:TextBox id="txtSampleDate2" runat="server"></asp:TextBox></TD></TR><TR><TD>姓名</TD><TD><asp:TextBox id="txtSampleName2" runat="server"></asp:TextBox></TD><TD>
    检测日期</TD><TD><asp:DropDownList id="ddlGender2" runat="server" Width="131px" Visible="False"><asp:ListItem Value="0">未知</asp:ListItem>
<asp:ListItem Value="1">男</asp:ListItem>
<asp:ListItem Value="2">女</asp:ListItem>
</asp:DropDownList>
    <asp:TextBox ID="txtCheckDate" runat="server"></asp:TextBox></TD></TR><TR><TD>年龄</TD><TD><asp:TextBox id="txtSampleAge2" runat="server" Visible="False"></asp:TextBox></TD><TD>来样单位</TD><TD><asp:DropDownList id="ddlSampleSource2" runat="server" Width="152px"></asp:DropDownList> </TD></TR><!-- 去掉地址及来样性质
<TR><TD>地址</TD><TD><asp:TextBox id="txtSampleAddress2" runat="server" __designer:wfdid="w2" Enabled="False"></asp:TextBox></TD><TD>来样性质</TD><TD><asp:DropDownList id="ddlSampleProperty2" runat="server" Width="152px" __designer:wfdid="w2" Enabled="False"></asp:DropDownList></TD></TR>
--><TR><TD>收样人</TD><TD><asp:TextBox id="txtSampleSign2" runat="server"></asp:TextBox></TD><TD>
    VL结果</TD><TD><asp:TextBox id="txtSampleResult2" runat="server"></asp:TextBox></TD></TR>
<TR><TD>报告存放路径</TD><TD colSpan=3><asp:TextBox id="txtSampleReport2" runat="server"></asp:TextBox></TD></TR>
<TR><TD colSpan=4><asp:Image id="imgReport" runat="server" Width="600px"></asp:Image> </TD></TR><TR><TD colSpan=4><asp:Button id="btnUpdateSample" onclick="btnUpdateSample_Click" runat="server" Text="修改"></asp:Button></TD></TR></TBODY></TABLE><asp:LinkButton id="LinkButton2" onclick="LinkButton1_Click" runat="server">返回样品列表</asp:LinkButton> <BR /></asp:Panel> 
</contenttemplate>
<Triggers>
<asp:PostBackTrigger ControlID="ddlSampleSourceUnit"></asp:PostBackTrigger>
</Triggers>
    </asp:UpdatePanel>
</asp:Content>

